set postman global variable header

122

set postman global variable header -

// set postman global variable in header
pm.request.headers.add({key: 'CustomHeader', value: 'CustomValue' });

pm.request.headers.add({key: 'Content-Type', value: 'application/json' });

Postman Global variable -

 var data = JSON.parse(responseBody); postman.clearGlobalVariable("jwt_token"); postman.setGlobalVariable("jwt_token", data.jwt_token); 

Comments

Submit
0 Comments